package com.jycrm.vo.area;

import java.util.List;

import com.jycrm.domain.channel.area.CrmAreas;
import com.jycrm.domain.contactperson.CrmContactperson;
import com.jycrm.domain.user.CrmDepartment;
import com.jycrm.domain.user.CrmUser;

public class AreaLogVo {

    /** The composite primary key value. */
    private java.lang.Long id;

    /** The value of the simple createdate property. */
    private java.lang.String createDate;

    /** The value of the simple parentarea property. */
    private CrmAreas parentArea;

    /** The value of the simple areaname property. */
    private java.lang.String areaName;

    /** The value of the simple areacode property. */
    private java.lang.String areaCode;

    /** The value of the simple areamanager property. */
    private CrmUser areaManager;
    
    private CrmDepartment department;
    
    private String isValid;
    
    private List channelList;
    
    private CrmUser assistant;


    /**
     * Return the simple primary key value that identifies this object.
     * @return java.lang.Long
     */
    public java.lang.Long getId()
    {
        return id;
    }

    /**
     * Set the simple primary key value that identifies this object.
     * @param id
     */
    public void setId(java.lang.Long id)
    {
        this.id = id;
    }

    /**
     * Return the value of the CREATEDATE column.
     * @return java.lang.String
     */
    public java.lang.String getCreateDate()
    {
        return this.createDate;
    }

    /**
     * Set the value of the CREATEDATE column.
     * @param createdate
     */
    public void setCreateDate(java.lang.String createDate)
    {
        this.createDate = createDate;
    }

    /**
     * Return the value of the PARENTAREA column.
     * @return java.lang.Long
     */
    public CrmAreas getParentArea()
    {
        return this.parentArea;
    }

    /**
     * Set the value of the PARENTAREA column.
     * @param parentarea
     */
    public void setParentArea(CrmAreas parentArea)
    {
        this.parentArea = parentArea;
    }

    /**
     * Return the value of the AREANAME column.
     * @return java.lang.String
     */
    public java.lang.String getAreaName()
    {
        return this.areaName;
    }

    /**
     * Set the value of the AREANAME column.
     * @param areaname
     */
    public void setAreaName(java.lang.String areaName)
    {
        this.areaName = areaName;
    }

    /**
     * Return the value of the AREACODE column.
     * @return java.lang.String
     */
    public java.lang.String getAreaCode()
    {
        return this.areaCode;
    }

    /**
     * Set the value of the AREACODE column.
     * @param areacode
     */
    public void setAreaCode(java.lang.String areaCode)
    {
        this.areaCode = areaCode;
    }

    /**
     * Return the value of the AREAMANAGER column.
     * @return java.lang.Long
     */
    public CrmUser getAreaManager()
    {
        return this.areaManager;
    }

    /**
     * Set the value of the AREAMANAGER column.
     * @param areamanager
     */
    public void setAreaManager(CrmUser areaManager)
    {
        this.areaManager = areaManager;
    }

    
    public String getIsValid() {
		return isValid;
	}

	public void setIsValid(String isValid) {
		this.isValid = isValid;
	}
	
	

	public CrmDepartment getDepartment() {
		return department;
	}

	public void setDepartment(CrmDepartment department) {
		this.department = department;
	}

	public List getChannelList() {
		return channelList;
	}

	public void setChannelList(List channelList) {
		this.channelList = channelList;
	}

	public String getAreaManagerName() {
		if(areaManager != null) {
			return areaManager.getUserName();
		}else {
			return "";
		}
	}
	
	public String getParentAreaName() {
		if(parentArea != null) {
			return parentArea.getAreaName();
		}else {
			return "";
		}
	}
	
	public String getCustName() {
		
		return null;
	}

	public CrmContactperson getKeyContactperson() {
		
		return null;
	}

	public String getMobile() {
		
		return null;
	}

	public String getResPersonName() {
		
		return null;
	}

	public CrmUser getResponsiblePerson() {
		
		return null;
	}

	public String getTarget() {
		
		return null;
	}

	public String getTargetName() {
		
		return null;
	}

	public String getTelephone() {
		
		return null;
	}

	public void setKeyContactperson(CrmContactperson keyContact) {

		
	}

	public CrmUser getAssistant() {
		return assistant;
	}

	public void setAssistant(CrmUser assistant) {
		this.assistant = assistant;
	}
	
	public String getAssistantName() {
		if(this.assistant != null)
			return assistant.getUserName();
		else return "";
	}

	public String getCustomerManagerName() {
		// TODO Auto-generated method stub
		return "";
	}

}
